package com.test.controller;

/**
 * Created by lms on 2017/11/17.
 */
public class HumanDirector {
    private HumanBuilder humanBuilder;

    public HumanDirector(HumanBuilder humanBuilder) {
        this.humanBuilder = humanBuilder;
    }

    //建造的过程在指挥者这里完成，用户就不需要知道了
    public void createHuman() {
        humanBuilder.setHead();
        humanBuilder.setBody();
        humanBuilder.setleg();
        humanBuilder.setHand();
        humanBuilder.setFoot();
    }
}
